<template>
  <div>
    <table class="table1 owntable mb20 tableLayout" border="0" cellspacing="0" cellpadding="1" style="width: 100%;">
      <tr>
        <td width="150">经销商管理编号</td>
        <td>{{ item.number }}</td>
        <td>管理部门</td>
        <td>{{ item.manageDeptName }}</td>
      </tr>
      <tr>
        <td>负责人</td>
        <td>{{ item.manageUserName }}</td>
        <td>编制部门</td>
        <td>{{ item.createDeptName }}</td>
      </tr>
    </table>

    <div class="f14 mb20">经销商信息如下：</div>
    <div v-for="(v, k) in item.dealerList" :key="index">
      <table class="table1 owntable tableLayout mb20" border="0" cellspacing="0" cellpadding="1" style="width: 100%;">
        <tr>
          <td width="150">经销商名称</td>
          <td>{{ v.name }}</td>
          <td width="150">质量管理体系</td>
          <td>{{ v.qualitySystem == 0 ? '有' : '无' }}</td>
        </tr>
        <tr>
          <td>经销商联系地址</td>
          <td colspan="3">{{ v.address }}</td>
        </tr>
        <tr>
          <td>经销商联系电话</td>
          <td colspan="3">{{ v.phone }}</td>
        </tr>
        <tr>
          <td>经营许可证编号</td>
          <td>{{ v.license || '-' }}</td>
          <td>经营备案证编号</td>
          <td>{{ v.filing || '-' }}</td>
        </tr>
      </table>
       <div class="f14 mb20">销售产品信息如下：</div>
      <table class="table1 owntable tableLayout mb20" border="0" cellspacing="0" cellpadding="1" style="width: 100%;" v-for="(m, n) in v.productList" :key="n" v-if="v.productList && v.productList.length!=0" >
        <tr>
          <td class="gary_bg">产品名称</td>
          <td class="gary_bg">规格型号</td>
          <td class="gary_bg">产品编号</td>
        </tr>
        <tr>
          <td class="white_bg">{{m.productName}}</td>
          <td class="white_bg">{{ m.productSku }}</td>
           <td class="white_bg">{{ m.productCode }}</td>
        </tr>
      </table>
    </div>

  </div>
</template>

<script>
export default {
  props: {
    item: {}
  }
};
</script>

<style></style>
